const router = require('koa-router')()
const controller = require('../controller/user')

router.prefix('/api')

router.get('/', async (ctx, next) => {
  ctx.body = 'api'
})

router.get('/find', controller.getAllUser)

router.post('/insert', controller.saveUser)

// router.delete('/delete', controller.delete)

// router.put('/update', controller.update)

module.exports = router